package domain;

import domain.exceptions.CannotFlagWallSquareException;
import domain.exceptions.CannotPlaceAgentHereException;

/**
 *
 * @author shaigi
 */
public class SquareWall extends Square implements Cloneable {
        
    public SquareWall(int row, int column){
        setRow(row);
        setColumn(column);
        try {
            setFlag(null);
        } catch (CannotFlagWallSquareException ex) {
            System.out.println("This code will never be reached");
        }
    }
    
    @Override
    public String toString(){
        return "Wall Square " + toStringLocation();
    }

    @Override
    public void placeAgent(Agent agent) throws CannotPlaceAgentHereException {
        throw new CannotPlaceAgentHereException();
    }
    
    @Override
    public void setFlag(Flag flag) throws CannotFlagWallSquareException{
        if ( flag != null )
            throw new CannotFlagWallSquareException();
    }
    @Override
    public SquareWall clone(){
        return 
    }
}
